<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/assets/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/assets/css/admin.css}">
    <script th:src="@{/assets/jquery/jquery-3.5.1.min.js}"></script>
    <title>二手交易管理平台</title>
</head>
<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header custom-header">
            
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item slide-sidebar" lay-unselect>
                    <a href="javascript:;" class="icon-font"><i class="ai ai-menufold"></i></a>
                </li>
            </ul>

            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">[[${T(com.spring.cold.security.Securitys).getName()}]]</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/logout}">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side custom-admin">
            <div class="layui-side-scroll">

                <div class="custom-logo">
                    <a th:href="@{/home}" style="color: #fff"><h1>二手交易</h1></a>
                </div>
                <ul id="Nav" class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe609;</i>
                            <em>主页</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/console}">首页</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe857;</i>
                            <em>商品管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() ne '1'}"><a th:href="@{/goods/page}">商品列表</a></dd>
                            <dd th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() ne '1'}"><a th:href="@{/collection/page}">收藏列表</a></dd>
                            <dd th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() ne '1'}"><a th:href="@{/orders/page}">订单列表</a></dd>
                            <dd th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() eq '1'}"><a th:href="@{/goods/adminPage}">商品列表</a></dd>
                        </dl>
                    </li>
                    <li th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() ne '1'}" class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe857;</i>
                            <em>个人管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/user/form}">信息管理</a></dd>
                        </dl>
                    </li>
                    <li th:if="${T(com.spring.cold.security.Securitys).getIsAdmin() eq '1'}" class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon">&#xe612;</i>
                            <em>用户管理</em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a th:href="@{/user/page}">用户列表</a></dd>
                        </dl>
                    </li>
                </ul>

            </div>
        </div>

        <div class="layui-body">
             <div class="layui-tab app-container" lay-allowClose="true" lay-filter="tabs">
                <ul id="appTabs" class="layui-tab-title custom-tab"></ul>
                <div id="appTabPage" class="layui-tab-content"></div>
            </div>
        </div>

        <div class="layui-footer">
            <p>© 2020：zzx</p>
        </div>

        <div class="mobile-mask"></div>
    </div>
    <script th:src="@{/assets/layui/layui.js}"></script>
    <script th:src="@{/assets/js/home.js}"></script>
</body>
</html>